package com.phiture.erp.finance.dal.mapper;

import java.util.*;

import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import com.phiture.erp.finance.dal.entity.ErpFinanceStatementItemsDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 对账单明细 Mapper
 *
 * @author lekaihuai
 */
@Mapper
public interface ErpFinanceStatementItemsMapper extends BaseMapperX<ErpFinanceStatementItemsDO> {

    default List<ErpFinanceStatementItemsDO> selectListByStatementId(Long statementId) {
        return selectList(ErpFinanceStatementItemsDO::getStatementId, statementId);
    }

    default int deleteByStatementId(Long statementId) {
        return delete(ErpFinanceStatementItemsDO::getStatementId, statementId);
    }

}
